const {CollectionMod}=require('../mod/CollectionMod.js');

module.exports.createColl =async function(Info){
  let data = await CollectionMod.create(Info);
}

module.exports.selectColl=async function(Info){
  let data = await CollectionMod.find({$and:[
      {userId:Info.userId},{contentId:Info.contentId}
  ]})
  return data;
}

module.exports.deleteColl=async function(Info){
  let data = await CollectionMod.remove({$and:[
    {userId:Info.userId},{contentId:Info.contentId}
  ]});
}